﻿
using agsXMPP;
namespace sharpxbot.Core.Muc
{
    public interface IGroupChat
    {
        /// <summary>
        /// Gets jid of this group chat
        /// </summary>
        Jid RoomJid { get; }

        /// <summary>
        /// Kicks participant from group-chat with given jid
        /// </summary>
        /// <param name="room">Group-chat jid</param>
        /// <param name="nick">Participant nick</param>
        /// <param name="reason">Reason of kick</param>
        void KickUser(Jid room, string nick, string reason);

        /// <summary>
        /// Leaves room for a given timeout the rejoins it
        /// </summary>
        /// <param name="timeout">Positive timeout in milliseconds</param>
        void LeaveRoom(int timeout);
    }
}
